package com.anze.abd.persistence.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 行程配置实体类
 * @author hejun
 *
 */
@Table(name = "STROKE")
@Entity
public class Stroke implements Serializable{
	
	private static final long serialVersionUID = -5693714397066430449L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID")
    private Long id;
	
	
	/**
	 * 状态
	 */
	@Column(name = "STATUS")
	private boolean status;
	
	/**
	 * 地点
	 */
	@Column(name = "PLACE")
	private String 	place;
	
	/**
	 * 备注
	 */
	@Column(name= "REMARKS",columnDefinition="text") 
	private String remarks;
	
	/**
	 * 记录拼车包车是否勾选
	 */
	@Column(name = "CAR")
	private int car;
	
	
	/**
	 * 拼车
	 */
	@Column(name= "CARPOOL",nullable=true)
	private double carpool;
	
	/**
	 * 包车
	 */
	@Column(name ="CHARTERED",nullable=true)
	private double chartered;
	
	/**
	 * 最低发车乘客
	 */
	@Column(name = "MINPEOPLE")
	private int minPeople;
	
	/**
	 * 计乘价
	 */
	@Column(name = "PRICE")
	private double price;
	
	
	/**
	 * 不带参数的构造函数
	 */
	public Stroke(){
		
	}
	
	/**
	 * 以后均为get,set方法
	 * @return
	 */
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public int getCar() {
		return car;
	}

	public void setCar(int car) {
		this.car = car;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public double getCarpool() {
		return carpool;
	}

	public void setCarpool(double carpool) {
		this.carpool = carpool;
	}

	public double getChartered() {
		return chartered;
	}

	public void setChartered(double chartered) {
		this.chartered = chartered;
	}

	public int getMinPeople() {
		return minPeople;
	}

	public void setMinPeople(int minPeople) {
		this.minPeople = minPeople;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
}
